<?php

defined('SYSPATH') or die('No direct access allowed.');
if (!Route::cache()) {
    /* 质检标准路由 */
    Route::set('checkstandard/index', 'checkstandard/index(/<action>(/<id>))')
            ->defaults(array(
                'controller' => 'checkstandard',
                'action' => 'index',
    ));
    Route::set('checkstandard/updateskuchecksign', 'checkstandard/updateskuchecksign(/<action>(/<id>))')
            ->defaults(array(
                'controller' => 'checkstandard',
                'action' => 'updateskuchecksign',
    ));
    Route::set('checkstandard/checkStandardMore', 'checkstandard/checkStandardMore(/<action>(/<id>))')
            ->defaults(array(
                'controller' => 'checkstandard',
                'action' => 'checkStandardMore',
    ));

    //质检单的路由
    Route::set('quality', 'quality(/<action>(/<id>))')
            ->defaults(array(
                'controller' => 'quality',
                'action' => 'index',
    ));

    Route::set('biaoqian', 'biaoqian(/<action>(/<id>))')
            ->defaults(array(
                'controller' => 'biaoqian',
                'action' => 'biaoqian',
    ));
    //不合格产品的路由
    Route::set('unqualified', 'unqualified(/<action>(/<id>))')
            ->defaults(array(
                'controller' => 'unqualified',
                'action' => 'index',
    ));
    //采购处理不良品的首页
    Route::set('unqualifieds', 'unqualified(/<action>(/<id>))')
            ->defaults(array(
                'controller' => 'unqualified',
                'action' => 'unqualified_check',
    ));
    //采购处理不良品的首页
    Route::set('handlequality', 'handlequality(/<action>(/<id>))')
            ->defaults(array(
                'controller' => 'handlequality',
                'action' => 'index',
    ));
    //质检不良品处理
    Route::set('badproduct', 'badproduct(/<action>(/<id>))')
            ->defaults(array(
                'controller' => 'badproduct',
                'action' => 'index',
    ));

    Route::set('quality/manualproducts', 'quality/manualproducts(/<action>(/<id>))')
            ->defaults(array(
                'directory' => 'quality',
                'controller' => 'manualproducts',
                'action' => 'manualproducts',
    ));
    Route::set('concession', 'concession(/<action>(/<id>))')
            ->defaults(array(
                'controller' => 'concession',
                'action' => 'index',
    ));

    Route::set('qualityfrom', 'qualityfrom(/<controller>(/<action>))')
            ->defaults(array(
                'directory' => 'quality',
                'controller' => 'detail',
                'action' => 'index',));
//yuqing
    Route::set('checkattr', 'checkattr(/<action>(/<id>))')
            ->defaults(array(
                'controller' => 'checkattr',
                'action' => 'index',
    ));

    Route::set('checkattr/manualproducts', 'checkattr/manualproducts(/<action>(/<id>))')
            ->defaults(array(
                'directory' => 'checkattr',
                'controller' => 'manualproducts',
                'action' => 'manualproducts',
    ));
//yuqing
}

ACL::set('QC', array(
    'qc' => array(
        'title' => __('质检操作'),
        'restrict access' => TRUE,
        'description' => ''
    ),
    'checkattr' => array(
        'title' => __('物流属性确认'),
        'restrict access' => TRUE,
        'description' => ''
    ),
    'check quality standard' => array(
        'title' => __('质检标准确认'),
        'restrict access' => TRUE,
        'description' => ''
    ),
    'qc print' => array(
        'title' => __('打印质检标签'),
        'restrict access' => TRUE,
        'description' => ''
    ),
    'unqualified' => array(
        'title' => __('不合格处理单的查询，修改'),
        'restrict access' => TRUE,
        'description' => ''
    ),
    'handlequality shi' => array(
        'title' => __('不良品实物处理'),
        'restrict access' => TRUE,
        'description' => ''
    ),
    'concession da' => array(
        'title' => __('不良品实物处理打印报告单'),
        'restrict access' => TRUE,
        'description' => ''
    ),
    'qc detail report' => array(
        'title' => __('质检明细报表'),
        'restrict access' => TRUE,
        'description' => ''
    ),
));


